package lab02.test02;

/**
 * Created by 阿阿阿阿豪丶 on 2017/10/13.
 */
public class Circle {
    float radius;
    public static final float PI = 3.1415f;

    public void area() {
        float area;
        area = PI * radius * radius;
        System.out.println("圆的面积为：" + area);
    }

    public void perimeter() {
        float perimeter;
        perimeter = 2 * PI * radius;
        System.out.println("圆的周长为：" + perimeter);
    }

}